﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TrialManagementTool.Helper;

namespace TrialManagementTool.Controllers
{
    public class ErrorController : Controller
    {
        //
        // GET: /Error/

        public ActionResult Index()
        {
            ViewBag.URL = Request.Url;
            if (Request.UserAgent.Contains("MicroMessenger"))
            {
                return View("Index.mobile");
            }
            else
            {
                return View();
            }
        }

        public ActionResult AuthFail()
        {
            return View();
        }
    }
}
